package com.glowdayz.model;

public class UserInfo {
	
	int USER_ID = 0;
	String USER_EMAIL = null;
	String USER_NICKNAME = null;
	boolean AUTO_LOGIN = false;
	
	private static UserInfo current = null;
	
	public static UserInfo getInstance() {
		if (current == null) {
			current = new UserInfo();
		}
		
		return current;
	}
	
	public static void freeInstance() {
		if (current != null) {
			current = null;
		}
	}
	
	public UserInfo() {}
	
	public UserInfo(int uSER_ID, String uSER_EMAIL, String uSER_NICKNAME,
			boolean aUTO_LOGIN) {
		super();
		USER_ID = uSER_ID;
		USER_EMAIL = uSER_EMAIL;
		USER_NICKNAME = uSER_NICKNAME;
		AUTO_LOGIN = aUTO_LOGIN;
	}

	public int getUSER_ID() {
		return USER_ID;
	}

	public void setUSER_ID(int uSER_ID) {
		USER_ID = uSER_ID;
	}

	public String getUSER_EMAIL() {
		return USER_EMAIL;
	}

	public void setUSER_EMAIL(String uSER_EMAIL) {
		USER_EMAIL = uSER_EMAIL;
	}

	public String getUSER_NICKNAME() {
		return USER_NICKNAME;
	}

	public void setUSER_NICKNAME(String uSER_NICKNAME) {
		USER_NICKNAME = uSER_NICKNAME;
	}

	public boolean isAUTO_LOGIN() {
		return AUTO_LOGIN;
	}

	public void setAUTO_LOGIN(boolean aUTO_LOGIN) {
		AUTO_LOGIN = aUTO_LOGIN;
	}

	@Override
	public String toString() {
		return "LoginInfo [USER_ID=" + USER_ID + ", USER_EMAIL=" + USER_EMAIL
				+ ", USER_NICKNAME=" + USER_NICKNAME + ", AUTO_LOGIN="
				+ AUTO_LOGIN + "]";
	}

}
